package com.changyinBus.common.core.domain.entity;

import com.changyinBus.common.core.domain.model.SendMessage;
import com.changyinBus.common.utils.IDGenerator;
import lombok.Data;

import java.util.Date;

@Data
public class SysMessage {
    private long id;
    /**
     * 公司名称
     */
    private String companyName;
    /**
     * 联系姓名
     */
    private String contact;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 联系邮箱
     */
    private String email;
    /**
     * 咨询信息
     */
    private String content;
    /**
     * 提交时间
     */
    private Date createTime;

    private long tenantId;

    public SysMessage(){}

    public SysMessage(SendMessage temp, long tenantId){
        this.id = IDGenerator.getID();
        this.companyName = temp.getCompanyName();
        this.contact = temp.getContact();
        this.phone = temp.getPhone();
        this.email = temp.getEmail();
        this.content = temp.getContent();
        this.tenantId = tenantId;
    }
}
